Type

@Serializable
data class Type(val id: Int, val name: String, val damageRelations: TypeRelations, val pastDamageRelations: List<TypePastDamageRelation>, val gameIndices: List<GenerationGameIndex>, val generation: Handle.Named<Generation>, val moveDamageClass: Handle.Named<MoveDamageClass>?, val names: List<Name>, val pokemon: List<TypePokemon>, val moves: List<Handle.Named<Move>>, val sprites: VersionTypeSprites) : NamedModel(source)

Types are properties for Pokémon and their moves. Each type has three properties: which types of Pokémon it is super effective against, which types of Pokémon it is not very effective against, and which types of Pokémon it is completely ineffective against. See: https://pokeapi.co/docs/v2#types

Parameters

id

The identifier for this type resource.

name

The name for this type resource.

damageRelations

A detail of how effective this type is toward others and vice versa.

pastDamageRelations

A list of details of how effective this type was toward others and vice versa in previous generations.

gameIndices

A list of game indices relevent to this item by generation.

generation

The generation this type was introduced in.

moveDamageClass

The class of damage inflicted by this type.

names

The name of this type listed in different languages.

pokemon

A list of details of Pokémon that have this type.

moves

A list of moves that have this type.

sprites

Sprites for this type.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, damageRelations: TypeRelations, pastDamageRelations: List<TypePastDamageRelation>, gameIndices: List<GenerationGameIndex>, generation: Handle.Named<Generation>, moveDamageClass: Handle.Named<MoveDamageClass>?, names: List<Name>, pokemon: List<TypePokemon>, moves: List<Handle.Named<Move>>, sprites: VersionTypeSprites)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: Int
Link copied to clipboard
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard